package com.powernode.service.impl;

import com.powernode.domain.UserAddr;
import com.powernode.mapper.UserAddrMapper;
import com.powernode.service.UserAddrService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class UserAddrServiceImpl implements UserAddrService{

    @Resource
    private UserAddrMapper userAddrMapper;

    @Override
    public int deleteByPrimaryKey(String addrId) {
        return userAddrMapper.deleteByPrimaryKey(addrId);
    }

    @Override
    public int insert(UserAddr record) {
        return userAddrMapper.insert(record);
    }

    @Override
    public int insertSelective(UserAddr record) {
        return userAddrMapper.insertSelective(record);
    }

    @Override
    public UserAddr selectByPrimaryKey(String addrId) {
        return userAddrMapper.selectByPrimaryKey(addrId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserAddr record) {
        return userAddrMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(UserAddr record) {
        return userAddrMapper.updateByPrimaryKey(record);
    }

}
